import { post, get } from "./base"

//获取商品列表
export const getList = async ()=>{
	return await get('product/getProducts', {})
}

//获取单个商品
export const getOne = async (id)=>{
	return await post('product/getProduct', {id})
}

export const exchange = async (list)=>{
	return await post('product/exchargeQuery', {list})
}

export const getExchange = async ()=>{
	return await get('product/getExcharge', {})
}